package cn.tedu.csmall.product.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;


import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * ClassName: AlbumAddNewDTO
 * Package: cn.tedu.csmall.product.pojo.vo
 * Description 添加相册的实体DTO类
 *
 * @version 0.0.1
 * @Author: 大傻
 * @Create:2022/11/29
 */
@Data
public class AlbumAddNewDTO {
    /**
     * 相册名称
     */

    @ApiModelProperty(value = "相册名称",required = true)
    @NotNull(message = "添加相册失败,必须输入相册名称!")
    @NotEmpty(message = "添加相册失败，必须提交相册名称！")
    private String name;
    /**
     * 相册简介
     */
    @ApiModelProperty(value = "相册简介")
    @NotNull(message = "添加相册失败,必须提交相册简介!")
    @NotEmpty(message = "添加相册失败，必须提交相册简介！")
    private String description;
    /**
     * 排序序号
     */
    @ApiModelProperty(value = "排序序号", example = "255")
    @NotNull(message = "添加相册失败，必须提交排序序号！")
   @Range(max = 255,message = "添加相册失败，排序序号必须是0~255之间的值！")
    private Integer sort;

}
